CFLAGS = -c -Wall
TF_FLAGS = -D_M_IX86

SOURCE_MYTWOFISH = myTwofish2.c
SOURCE_TWOFISH2 = twofish2.c
SOURCE_ZLIBUSE = zlib_use.c

DEPENDS_MYTWOFISH =  aes.h
DEPENDS_TWOFISH2 =  aes.h table.h #../sha/sha2.h
DEPENDS_ZLIBUSE = zlib_use.h #$(SOURCE_ZLIBUSE) 

.PHONY: clean

all: mytwofish2 twofish2 zlib_use

clean:
	-rm -rf *.o *.*~ *.xml

mytwofish2: $(DEPENDS_MYTWOFISH)
	cc $(CFLAGS) $(SOURCE_MYTWOFISH)

twofish2: $(DEPENDS_TWOFISH2)
	cc  $(CFLAGS) $(TF_FLAGS) $(SOURCE_TWOFISH2)

zlib_use: $(DEPENDS_ZLIBUSE)
	cc $(CFLAGS) $(SOURCE_ZLIBUSE)

